<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ include file="../../attr.jsp" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<!doctype html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=emulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta charset="utf-8">


<script type="text/javascript" src="${ctx}/js/jquery.js"></script>

<script type="text/javascript" src="${ctx}/js/LodopFuncs.js"></script>
<object  id="LODOP_OB" classid="clsid:2105C259-1E0C-4534-8141-A753534CB4CA" width=0 height=0> 
       <embed id="LODOP_EM" type="application/x-print-lodop" width=0 height=0></embed>
</object>

<style>
    ul{padding-left: 0;}
    ul,li{list-style: none;font-size: 8px;margin-left:4px;margin-top:1px;}
   .item{height: 36px;border-bottom:1px solid #000;display: flex;}
   
   .item h1{font-size: 16px;font-weight: normal;line-height: 15px;margin: auto;}
   
   .item p{line-height: 12px;margin-left: 42px;font-size: 11px;}
   
   .item2{height: 38px;border-bottom:1px solid #000;display: flex;font-size: 11px;}
   
   .item2 ul:nth-of-type(2){margin-left: 39px;}
   
   
</style>


<title>编辑包装</title>
</head>

<body>
    <div id="saper-container">
    	
    	<div class="tiaoma" id="saper-print">
	        <div class="item">
	        	<h1>湖北省人民医院物品条码打印界面<span></span></h1>
	        	
	        </div>
		</div>

    </div>
    
    <div id="saper-ft">
        	<input type="button" value="打印" id="print" onclick="javascript:myPreview();" />
    </div>
</body>

<script language="javascript" type="text/javascript">

	var LODOP=getLodop(document.getElementById('LODOP_OB'),document.getElementById('LODOP_EM'));
	
	
	function myPrint() {		       
		CreatePrintPage();       
		LODOP.PRINT();		       
	};         
	function myPrintA() {		       
		CreatePrintPage();       
		LODOP.PRINTA();		       
	};  	       
	function myPreview() {		       
		CreatePrintPage();       
		LODOP.PREVIEW();		       
	};		       
	function mySetup() {		       
		CreatePrintPage();       
		LODOP.PRINT_SETUP();		       
	};	       
	function myDesign() {		       
		CreatePrintPage();       
		LODOP.PRINT_DESIGN();		       
	};	       
	function myBlankDesign() {       
		LODOP=getLodop();         
   		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_空白练习");		       
		LODOP.PRINT_DESIGN();		       
	};			       
	function CreatePrintPage() {
		debugger
		console.log(document.getElementById('LODOP_OB'));
		console.log(document.getElementById('LODOP_EM'));
		LODOP=getLodop();
		console.log(LODOP);
		LODOP.PRINT_INIT("打印控件功能演示_Lodop功能_名片");       
		LODOP.ADD_PRINT_RECT(10,10,256,142,0,1);
		LODOP.SET_PRINT_STYLE("FontSize",8);
		LODOP.SET_PRINT_STYLE("FontName","微软雅黑");
		LODOP.ADD_PRINT_TEXT(10,10,170,38,"停止");
		LODOP.ADD_PRINT_TEXT(16,120,80,38,"()");
		LODOP.ADD_PRINT_RECT(38,10,256,116,0,1);
		LODOP.SET_PRINT_STYLEA(2,"FontName","隶书");
		LODOP.SET_PRINT_STYLEA(2,"FontSize",14);
		LODOP.SET_PRINT_STYLEA(3,"FontSize",8);
		LODOP.ADD_PRINT_BARCODE(50,20,230,70,"Code39","STOP");
		LODOP.SET_PRINT_STYLEA(1,"ShowBarText",0);
	};
	function myAddHtml() {       
		LODOP=getLodop();         
   		LODOP.PRINT_INIT("");		            
		LODOP.ADD_PRINT_HTM(0,0,"100%","100%",document.getElementById("textarea01").value);	       
	};	       
</script>
 






</html>